package com.kymatrix.kycarbon.xsmd.server.controller;

import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author liujie
 * @date 2024-05-06
 */
@Controller
@Slf4j
public class StaticController {
    
    @RequestMapping(value = {"/page/**"}, method = RequestMethod.GET)
    public String index() {
        return "index";
    }

    @RequestMapping(value = {"/"}, method = RequestMethod.GET)
    public void index2(HttpServletResponse response) throws IOException {
        response.sendRedirect("/page");
    }
}
